package com.dingwei.superiordiary.adapter.easyViewHolder;

import android.view.ViewGroup;
import android.widget.TextView;

import com.dingwei.superiordiary.R;
import com.dingwei.superiordiary.bean.Area_Bean;
import com.dingwei.superiordiary.bean.IntegerLogBean;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by lihao on 2017/9/12.
 */

public class PointDetailsHolder extends BaseViewHolder<IntegerLogBean.DataBean.ListBean> {

    @Bind(R.id.tv_title)
    TextView tvTitle;
    @Bind(R.id.tv_time)
    TextView tvTime;
    @Bind(R.id.tv_point)
    TextView tvPoint;

    public PointDetailsHolder(ViewGroup parent) {
        super(parent, R.layout.item_point_detail);
        ButterKnife.bind(this, itemView);
    }


    @Override
    public void setData(IntegerLogBean.DataBean.ListBean data) {
        super.setData(data);
        tvTitle.setText(data.description);
        tvTime.setText(data.addtime);
        tvPoint.setText(data.integral);
    }
}
